Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Treat item as dict TDE-1209 #993

Merged
merged 1 commit into from
Jul 1, 2024
Merged

fix: Treat item as dict TDE-1209 #993

merged 1 commit into from
Jul 1, 2024

Conversation

l0b0
Copy link
Contributor

@l0b0 l0b0 commented Jun 17, 2024

Motivation

Fix runtime error in commands like docker build -t topo-imagery . && docker run -v ${HOME}/tmp/:/tmp/:rw -v ${HOME}/.aws/credentials:/root/.aws/credentials:ro -e AWS_PROFILE=li-topo-prod topo-imagery python /app/scripts/collection_from_items.py --uri s3://linz-workflows-scratch/afage/small_example_dem_dataset/ --collection-id 01HYCJ3EXF37J4A9130AH7Q2RF --category dem --region hawkes-bay --gsd 1m --start-date 2023-09-20 --end-date 2023-12-21 --lifecycle ongoing --producer "Woolpert" --licensor "National Institute of Water and Atmospheric Research" --concurrency 25 on topo-prod account.

Modification

We load the item from a JSON file into a dict in the production code,
but none of our automated tests verify this code path, so it broke.

This partially reverts commit ed177c6.

Checklist

  • Tests updated
  • Docs updated
  • Issue linked in Title

We load the item from a JSON file into a `dict` in the production code,
but none of our automated tests verify this code path, so it broke.

This partially reverts commit ed177c6.
@l0b0 l0b0 force-pushed the fix/imagery-item-dict branch from dea8fbf to d191eb0 Compare June 19, 2024 21:30
@l0b0 l0b0 changed the title feat: Use PySTAC for simpler code fix: Treat item as dict Jun 19, 2024
@l0b0 l0b0 changed the title fix: Treat item as dict fix: Treat item as dict TDE-1209 Jun 19, 2024
@l0b0 l0b0 marked this pull request as ready for review June 19, 2024 21:46
@l0b0 l0b0 requested a review from a team as a code owner June 19, 2024 21:46
@l0b0 l0b0 enabled auto-merge June 19, 2024 23:07
@amfage amfage mentioned this pull request Jun 19, 2024
@l0b0 l0b0 added this pull request to the merge queue Jul 1, 2024
Merged via the queue into master with commit 384d0fc Jul 1, 2024
2 checks passed
@l0b0 l0b0 deleted the fix/imagery-item-dict branch July 1, 2024 21:39
amfage added a commit that referenced this pull request Jul 7, 2024
@amfage amfage mentioned this pull request Jul 7, 2024
3 tasks
github-merge-queue bot pushed a commit that referenced this pull request Jul 8, 2024
#### Motivation

Revert Pull Requests #993 and #985 
#985 caused [collection_from_item to
fail](https://toitutewhenua.atlassian.net/browse/TDE-1209) and while
#985 resolved that issue, it [creates invalid STAC
Items](https://toitutewhenua.atlassian.net/browse/TDE-1217). Unit tests
and GitHub Actions tests did not pick up these issues.

#### Modification

Revert commits 384d0fc and
ed177c6

#### Checklist

_If not applicable, provide explanation of why._

- [x] Tests updated - [also created a Jira issue to improve testing so
we can pick these up in
future](https://toitutewhenua.atlassian.net/browse/TDE-1218).
- [x] Docs updated
- [x] Issue linked in Title
github-merge-queue bot pushed a commit that referenced this pull request Jul 16, 2024
🤖 I have created a release *beep* *boop*
---


## [4.9.0](v4.8.0...v4.9.0)
(2024-07-16)


### Features

* Add Shapely type library TDE-1205
([#988](#988))
([f5e97e7](f5e97e7))
* use new pull request template
([#999](#999))
([9a6a0b2](9a6a0b2))


### Bug Fixes

* concurrency file order TDE-1213
([#998](#998))
([37dcb8b](37dcb8b))
* Treat item as `dict` TDE-1209
([#993](#993))
([384d0fc](384d0fc))


### Reverts

* Pull Requests [#993](#993)
and [#985](#985)
([#997](#997))
([289880c](289880c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants